<?php /* Smarty version 2.6.19, created on 2009-02-05 16:37:58
         compiled from admin/admin_config.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'admin/admin_config.tpl', 44, false),)), $this); ?>
<script type="text/javascript">
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../scripts/validator.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</script>
<form name="form1" method="post" action="" onsubmit="return checkForm([['troopname','text',true,0,0,'', 'Website Name'],['siteaddress','text',true,0,0,'', 'Site Address'],['sitemail','email',true,0,0,'', 'Website Email'],['numpm','number',true,0,0,'', 'Number of Private Messages'],['uploadlimit','number',true,0,0,'', 'Upload Limit'],['avyy','number',true,0,0,'', 'Avatar Y size'],['avyx','number',true,0,0,'', 'Avatar X size'],['sigsize','number',true,0,0,'', 'Signature Size'],['photox','number',true,0,0,'', 'Maximum Photo X Size'],['photoy','number',true,0,0,'', 'Maximum Photo Y Size'],['numsidebox','number',true,0,0,'', 'Items on Sideboxes'],['numpage','number',true,0,0,'', 'Number of items per page'],['privacy','text',true,0,0,'', 'Privacy Statement']]);">
<h2>Website Configuration</h2>
<div class="fieldError" id="anyerror"></div>
<div id="navcontainer">
<h4 title="website">Website</h4>
<div id="website">
<div class="field">
    <div class="fieldItem"><label for="troopname" class="label">Website Name<span class="hintanchor" title="The name of your website."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="text" name="troopname" id="troopname" value="<?php echo $this->_tpl_vars['configs']['troopname']; ?>
" size="40" class="inputbox" onblur="checkElement('troopname', 'text', true, 0, 0, '');" /><br /><span class="fieldError" id="troopnameError">Required</span><?php else: ?><?php echo $this->_tpl_vars['configs']['troopname']; ?>
<?php endif; ?></div></div><br />

    <div class="fieldItem"><label for="troop_description" class="label">Website Description<span class="hintanchor" title="A short description of the website. Where it is used depends on the template."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="text" name="troop_description" id="troop_description" value="<?php echo $this->_tpl_vars['configs']['troop_description']; ?>
" size="40" class="inputbox"  /><?php else: ?><?php echo $this->_tpl_vars['configs']['troop_description']; ?>
<?php endif; ?></div></div><br />

    <div class="fieldItem"><label for="copyright" class="label">Copyright Message<span class="hintanchor" title="This is a short copyright message that is shown at the bottom of every page."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="text" name="copyright" id="copyright" value="<?php echo $this->_tpl_vars['configs']['copyright']; ?>
" size="40" class="inputbox" /><?php else: ?><?php echo $this->_tpl_vars['configs']['copyright']; ?>
<?php endif; ?></div></div><br />

    <div class="fieldItem"><label for="disclaimer" class="label">Disclaimer<span class="hintanchor" title="This is a short disclaimer message that is shown at the bottom of every page. You may leave it blank, but most Scout Associations require scouting websites to display a disclaimer message."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="text" name="disclaimer" id="disclaimer" value="<?php echo $this->_tpl_vars['configs']['disclaimer']; ?>
" size="40" class="inputbox" /><?php else: ?><?php echo $this->_tpl_vars['configs']['disclaimer']; ?>
<?php endif; ?></div></div><br />

    <div class="fieldItem"><label for="siteaddress" class="label">Site Address<span class="hintanchor" title="Advanced Users Only :: The address of your website, make sure that this points to the correct address."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/exclamation.png" alt="[!]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="text" name="siteaddress" id="siteaddress" value="<?php echo $this->_tpl_vars['configs']['siteaddress']; ?>
" size="40" class="inputbox" onblur="checkElement('siteaddress', 'text', true, 0, 0, '');" /><br /><span class="fieldError" id="siteaddressError">Required</span><?php else: ?><?php echo $this->_tpl_vars['configs']['siteaddress']; ?>
<?php endif; ?></div></div><br />

    <div class="fieldItem"><span class="label">Disable Site<span class="hintanchor" title="Disable the website"><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></span>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="radio" name="disablesite" id="disablesite:yes" value="1" <?php if ($this->_tpl_vars['configs']['disablesite'] == 1): ?>checked="checked"<?php endif; ?> /><label for="disablesite:yes">Yes</label>
    <input name="disablesite" id="disablesite:no" type="radio" value="0" <?php if ($this->_tpl_vars['configs']['disablesite'] == 0): ?>checked="checked"<?php endif; ?> /><label for="disablesite:no">No</label><?php else: ?><?php if ($this->_tpl_vars['configs']['disablesite']): ?>Yes<?php else: ?>No<?php endif; ?><?php endif; ?></div></div><br />

    <div class="fieldItem"><label for="disablereason" class="label">Reason<span class="hintanchor" title="The reason for the website being disabled. You may use HTML here."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><textarea name="disablereason" style="width:100%" rows="30" id="disablereason" class="inputbox"><?php echo $this->_tpl_vars['configs']['disablereason']; ?>
</textarea><?php else: ?><?php echo $this->_tpl_vars['configs']['disablereason']; ?>
<?php endif; ?></div></div><br />

    <div class="fieldItem"><span class="label">Debug Mode<span class="hintanchor" title="Advanced Users Only :: Displays number of database queries, and how long it took to render a page."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/exclamation.png" alt="[!]"/></span></span>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="radio" name="softdebug" id="softdebug:yes" value="1" <?php if ($this->_tpl_vars['configs']['softdebug'] == 1): ?>checked="checked"<?php endif; ?> /><label for="softdebug:yes">Yes</label>
    <input name="softdebug" id="softdebug:no" type="radio" value="0" <?php if ($this->_tpl_vars['configs']['softdebug'] == 0): ?>checked="checked"<?php endif; ?> /><label for="softdebug:no">No</label><?php else: ?><?php if ($this->_tpl_vars['configs']['softdebug']): ?>Yes<?php else: ?>No<?php endif; ?><?php endif; ?></div></div><br />

    <div class="fieldItem"><span class="label">GZip Output<span class="hintanchor" title="Advanced Users Only :: Compresses the output before sending it to the user. Will only work if your server and the users browser supports GZip (Most modern ones do)"><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/exclamation.png" alt="[!]"/></span></span>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="radio" name="gzip" id="gzip:yes" value="1" <?php if ($this->_tpl_vars['configs']['gzip'] == 1): ?>checked="checked"<?php endif; ?> /><label for="gzip:yes">Yes</label>
    <input name="gzip" id="gzip:no" type="radio" value="0" <?php if ($this->_tpl_vars['configs']['gzip'] == 0): ?>checked="checked"<?php endif; ?> /><label for="gzip:no">No</label><?php else: ?><?php if ($this->_tpl_vars['configs']['gzip']): ?>Yes<?php else: ?>No<?php endif; ?><?php endif; ?></div></div><br />

    <div class="fieldItem"><label for="zone" class="label">Server Timezone<span class="hintanchor" title="The timezone that the server is set to."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><select name="zone" id="zone" class="inputbox">
    <?php unset($this->_sections['zones']);
$this->_sections['zones']['name'] = 'zones';
$this->_sections['zones']['loop'] = is_array($_loop=$this->_tpl_vars['numzones']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['zones']['show'] = true;
$this->_sections['zones']['max'] = $this->_sections['zones']['loop'];
$this->_sections['zones']['step'] = 1;
$this->_sections['zones']['start'] = $this->_sections['zones']['step'] > 0 ? 0 : $this->_sections['zones']['loop']-1;
if ($this->_sections['zones']['show']) {
    $this->_sections['zones']['total'] = $this->_sections['zones']['loop'];
    if ($this->_sections['zones']['total'] == 0)
        $this->_sections['zones']['show'] = false;
} else
    $this->_sections['zones']['total'] = 0;
if ($this->_sections['zones']['show']):

            for ($this->_sections['zones']['index'] = $this->_sections['zones']['start'], $this->_sections['zones']['iteration'] = 1;
                 $this->_sections['zones']['iteration'] <= $this->_sections['zones']['total'];
                 $this->_sections['zones']['index'] += $this->_sections['zones']['step'], $this->_sections['zones']['iteration']++):
$this->_sections['zones']['rownum'] = $this->_sections['zones']['iteration'];
$this->_sections['zones']['index_prev'] = $this->_sections['zones']['index'] - $this->_sections['zones']['step'];
$this->_sections['zones']['index_next'] = $this->_sections['zones']['index'] + $this->_sections['zones']['step'];
$this->_sections['zones']['first']      = ($this->_sections['zones']['iteration'] == 1);
$this->_sections['zones']['last']       = ($this->_sections['zones']['iteration'] == $this->_sections['zones']['total']);
?>
    <option value="<?php echo $this->_tpl_vars['zone'][$this->_sections['zones']['index']]['id']; ?>
" <?php if (( $this->_tpl_vars['configs']['zone'] == $this->_tpl_vars['zone'][$this->_sections['zones']['index']]['id'] )): ?>selected="selected" <?php $this->assign('offset', $this->_tpl_vars['zone'][$this->_sections['zones']['index']]['offset']); ?><?php endif; ?>><?php echo $this->_tpl_vars['zone'][$this->_sections['zones']['index']]['name']; ?>
 (<?php echo ((is_array($_tmp=time()+$this->_tpl_vars['zone'][$this->_sections['zones']['index']]['offset']*3600)) ? $this->_run_mod_handler('date_format', true, $_tmp, "%b %d, %Y @ %R") : smarty_modifier_date_format($_tmp, "%b %d, %Y @ %R")); ?>
)</option>
    <?php endfor; endif; ?>
    </select><?php else: ?>
    <?php unset($this->_sections['zones']);
$this->_sections['zones']['name'] = 'zones';
$this->_sections['zones']['loop'] = is_array($_loop=$this->_tpl_vars['numzones']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['zones']['show'] = true;
$this->_sections['zones']['max'] = $this->_sections['zones']['loop'];
$this->_sections['zones']['step'] = 1;
$this->_sections['zones']['start'] = $this->_sections['zones']['step'] > 0 ? 0 : $this->_sections['zones']['loop']-1;
if ($this->_sections['zones']['show']) {
    $this->_sections['zones']['total'] = $this->_sections['zones']['loop'];
    if ($this->_sections['zones']['total'] == 0)
        $this->_sections['zones']['show'] = false;
} else
    $this->_sections['zones']['total'] = 0;
if ($this->_sections['zones']['show']):

            for ($this->_sections['zones']['index'] = $this->_sections['zones']['start'], $this->_sections['zones']['iteration'] = 1;
                 $this->_sections['zones']['iteration'] <= $this->_sections['zones']['total'];
                 $this->_sections['zones']['index'] += $this->_sections['zones']['step'], $this->_sections['zones']['iteration']++):
$this->_sections['zones']['rownum'] = $this->_sections['zones']['iteration'];
$this->_sections['zones']['index_prev'] = $this->_sections['zones']['index'] - $this->_sections['zones']['step'];
$this->_sections['zones']['index_next'] = $this->_sections['zones']['index'] + $this->_sections['zones']['step'];
$this->_sections['zones']['first']      = ($this->_sections['zones']['iteration'] == 1);
$this->_sections['zones']['last']       = ($this->_sections['zones']['iteration'] == $this->_sections['zones']['total']);
?>
    <?php if (( $this->_tpl_vars['configs']['zone'] == $this->_tpl_vars['zone'][$this->_sections['zones']['index']]['id'] )): ?><?php echo $this->_tpl_vars['zone'][$this->_sections['zones']['index']]['name']; ?>
 (<?php echo ((is_array($_tmp=time()+$this->_tpl_vars['zone'][$this->_sections['zones']['index']]['offset']*3600)) ? $this->_run_mod_handler('date_format', true, $_tmp, "%b %d, %Y @ %R") : smarty_modifier_date_format($_tmp, "%b %d, %Y @ %R")); ?>
)<?php endif; ?>
    <?php endfor; endif; ?><?php endif; ?></div></div><br />

    <div class="fieldItem"><label for="numpm" class="label">Number of PMs<span class="hintanchor" title="How many personal messages can a user have in each box? Default 10"><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="text" name="numpm" id="numpm" value="<?php echo $this->_tpl_vars['configs']['numpm']; ?>
" class="inputbox"  onblur="checkElement('numpm', 'number', true, 0, 0, '');"/><br /><span class="fieldError" id="numpmError">Required: Must be a number.</span><?php else: ?><?php echo $this->_tpl_vars['configs']['numpm']; ?>
<?php endif; ?></div></div><br />

    <div class="fieldItem"><span class="label">Default Authorisation<span class="hintanchor" title="If a user does not have a authorisation setting associated with them, how must CMScout handle their permisions."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></span>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="radio" name="defaultaccess" id="defaultaccess:yes" value="1" <?php if ($this->_tpl_vars['configs']['defaultaccess'] == 1): ?>checked="checked"<?php endif; ?> /><label for="defaultaccess:yes">Allow</label>
    <input name="defaultaccess" id="defaultaccess:no" type="radio" value="0" <?php if ($this->_tpl_vars['configs']['defaultaccess'] == 0): ?>checked="checked"<?php endif; ?> /><label for="defaultaccess:no">Deny</label><?php else: ?><?php if ($this->_tpl_vars['configs']['defaultaccess']): ?>Allow<?php else: ?>Deny<?php endif; ?><?php endif; ?></div></div><br />

    <div class="fieldItem"><label for="uploadlimit" class="label">Upload Limit<span class="hintanchor" title="Maximum file size a user can upload to the download section, this does not apply for users with administrator or Scouter access level"><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="text" name="uploadlimit" id="uploadlimit" value="<?php echo $this->_tpl_vars['configs']['uploadlimit']; ?>
" size="20" class="inputbox" onblur="checkElement('uploadlimit', 'number', true, 0, 0, '');" />Kb<br /><span class="fieldError" id="uploadlimitError">Required: Must be a number.</span><?php else: ?><?php echo $this->_tpl_vars['configs']['uploadlimit']; ?>
Kb<?php endif; ?></div></div><br />

    <div class="fieldItem"><label for="cookiename" class="label">Name of cookie<span class="hintanchor" title="Advanced Users Only :: Name of the CMScout cookie."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/exclamation.png" alt="[!]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="text" name="cookiename" id="cookiename" value="<?php echo $this->_tpl_vars['configs']['cookiename']; ?>
" class="inputbox" /><?php else: ?><?php echo $this->_tpl_vars['configs']['cookiename']; ?>
<?php endif; ?></div></div><br />

    <div class="fieldItem"><label for="session_length" class="label">Logon Time<span class="hintanchor" title="Advanced Users Only :: Length of time a inactive user will remain logged on (In seconds). Default value is 3600."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/exclamation.png" alt="[!]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="text" name="session_length" id="session_length" value="<?php echo $this->_tpl_vars['configs']['session_length']; ?>
" class="inputbox"  onblur="checkElement('session_length', 'number', true, 0, 0, '');"/><br /><span class="fieldError" id="session_lengthError">Required: Must be a number.</span><?php else: ?><?php echo $this->_tpl_vars['configs']['session_length']; ?>
<?php endif; ?></div></div><br />

    <div class="fieldItem"><label for="activetime" class="label">Active Length<span class="hintanchor" title="Advanced Users Only :: Length of time a logged on user will remain in the active list (In seconds). Default value is 300."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/exclamation.png" alt="[!]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="text" name="activetime" id="activetime" value="<?php echo $this->_tpl_vars['configs']['activetime']; ?>
" class="inputbox" onblur="checkElement('activetime', 'number', true, 0, 0, '');" /><br /><span class="fieldError" id="activetimeError">Required: Must be a number.</span><?php else: ?><?php echo $this->_tpl_vars['configs']['activetime']; ?>
<?php endif; ?></div></div><br />
    </div>
    <?php if ($this->_tpl_vars['editallowed']): ?><div class="submitWrapper">
        <input type="submit" name="Submit" value="Update Config"  class="button" />&nbsp;
        <input type="reset" name="Submit2" value="Reset" class="button" />
    </div><?php endif; ?>
</div>

<h4 title="email">Email</h4>
<div id="email">
<div class="field">
    <div class="fieldItem"><label for="sitemail" class="label">Website Email<span class="hintanchor" title="The webmaster's email address. All emails sent by CMScout will be from this address. The address needs to exist since CMScout will send emails to this address as well."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="text" name="sitemail" id="sitemail" value="<?php echo $this->_tpl_vars['configs']['sitemail']; ?>
" size="40" class="inputbox" onblur="checkElement('sitemail', 'email', true, 0, 0, '');" /><br /><span class="fieldError" id="sitemailError">Required: Must be a valid email address.</span><?php else: ?><?php echo $this->_tpl_vars['configs']['sitemail']; ?>
<?php endif; ?></div></div><br />

    <div class="fieldItem"><label for="emailPrefix" class="label">Email Prefix<span class="hintanchor" title="This will be added to the front of the subject of any emails sent by CMScout."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="text" name="emailPrefix" id="emailPrefix" value="<?php echo $this->_tpl_vars['configs']['emailPrefix']; ?>
" size="40" class="inputbox" onblur="checkElement('emailPrefix', 'text', true, 0, 0, '');" /><br /><span class="fieldError" id="emailPrefixError">Required</span><?php else: ?><?php echo $this->_tpl_vars['configs']['emailPrefix']; ?>
<?php endif; ?></div></div><br />
    
    <div class="fieldItem"><span class="label">Enable Emails<span class="hintanchor" title="Advanced Users Only :: Use this to disable CMScout from sending any emails."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/exclamation.png" alt="[!]"/></span></span>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="radio" name="allowemails" id="allowemails:yes" value="1" <?php if ($this->_tpl_vars['configs']['allowemails'] == 1): ?>checked="checked"<?php endif; ?> /><label for="allowemails:yes">Yes</label>
    <input name="allowemails" id="allowemails:no" type="radio" value="0" <?php if ($this->_tpl_vars['configs']['allowemails'] == 0): ?>checked="checked"<?php endif; ?> /><label for="allowemails:no">No</label><?php else: ?><?php if ($this->_tpl_vars['configs']['allowemails']): ?>Yes<?php else: ?>No<?php endif; ?><?php endif; ?></div></div><br />

    <div class="fieldItem"><span class="label">Use SMTP<span class="hintanchor" title="Advanced Users Only :: Select this if you need to use a SMTP email connection to send emails"><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/exclamation.png" alt="[!]"/></span></span>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="radio" name="smtp" id="smtp:yes" value="1" <?php if ($this->_tpl_vars['configs']['smtp'] == 1): ?>checked="checked"<?php endif; ?> /><label for="smtp:yes">Yes</label>
    <input name="smtp" id="smtp:no" type="radio" value="0" <?php if ($this->_tpl_vars['configs']['smtp'] == 0): ?>checked="checked"<?php endif; ?> /><label for="smtp:no">No</label><?php else: ?><?php if ($this->_tpl_vars['configs']['smtp']): ?>Yes<?php else: ?>No<?php endif; ?><?php endif; ?></div></div><br />
    
    <div class="fieldItem"><label for="smtp_host" class="label">SMTP Host<span class="hintanchor" title="Advanced Users Only :: Hostname for the SMTP server."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/exclamation.png" alt="[!]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="text" name="smtp_host" id="smtp_host" value="<?php echo $this->_tpl_vars['configs']['smtp_host']; ?>
" class="inputbox" /><?php else: ?><?php echo $this->_tpl_vars['configs']['smtp_host']; ?>
<?php endif; ?></div></div><br />
    
    <div class="fieldItem"><label for="smtp_port" class="label">SMTP Port<span class="hintanchor" title="Advanced Users Only :: Port number for the SMTP server. Default is 25."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/exclamation.png" alt="[!]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="text" name="smtp_port" id="smtp_port" value="<?php echo $this->_tpl_vars['configs']['smtp_port']; ?>
" class="inputbox" /><?php else: ?><?php echo $this->_tpl_vars['configs']['smtp_port']; ?>
<?php endif; ?></div></div><br />
    
    <div class="fieldItem"><label for="smtp_host" class="label">SMTP Username<span class="hintanchor" title="Advanced Users Only :: Username to access the SMTP server."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/exclamation.png" alt="[!]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="text" name="smtp_username" id="smtp_username" value="<?php echo $this->_tpl_vars['configs']['smtp_username']; ?>
" class="inputbox" /><?php else: ?><?php echo $this->_tpl_vars['configs']['smtp_username']; ?>
<?php endif; ?></div></div><br />
    
    <div class="fieldItem"><label for="smtp_password" class="label">SMTP Password<span class="hintanchor" title="Advanced Users Only :: Password for the SMTP server."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/exclamation.png" alt="[!]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="text" name="smtp_password" id="smtp_password" value="<?php echo $this->_tpl_vars['configs']['smtp_password']; ?>
" class="inputbox" /><?php else: ?><?php echo $this->_tpl_vars['configs']['smtp_password']; ?>
<?php endif; ?></div></div><br />
</div>
    
    <?php if ($this->_tpl_vars['editallowed']): ?><div class="submitWrapper">
        <input type="submit" name="Submit" value="Update Config"  class="button" />&nbsp;
        <input type="reset" name="Submit2" value="Reset" class="button" />
    </div><?php endif; ?>
</div>

<h4 title="registration">Registration</h4>
<div id="registration">
<div class="field">
    <div class="fieldItem"><span class="label">Allow registration<span class="hintanchor" title="Are users allowed to register to join the site?"><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></span>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="radio" name="register" id="register:yes" value="1" <?php if ($this->_tpl_vars['configs']['register'] == 1): ?>checked="checked"<?php endif; ?> /><label for="register:yes">Yes</label>
    <input name="register" id="register:no" type="radio" value="0" <?php if ($this->_tpl_vars['configs']['register'] == 0): ?>checked="checked"<?php endif; ?> /><label for="register:no">No</label><?php else: ?><?php if ($this->_tpl_vars['configs']['register']): ?>Yes<?php else: ?>No<?php endif; ?><?php endif; ?></div></div><br />

    <div class="fieldItem"><span class="label">CAPTCHA image<span class="hintanchor" title="Displays a CAPTCHA image when a user registers or when a guest posts on the forums. This verifies that the user is a human and prevents spam-bots from registering or posting"><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></span>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="radio" name="registerimage" id="registerimage:yes" value="1" <?php if ($this->_tpl_vars['configs']['registerimage'] == 1): ?>checked="checked"<?php endif; ?> /><label for="registerimage:yes">Yes</label>
    <input name="registerimage" id="registerimage:no" type="radio" value="0" <?php if ($this->_tpl_vars['configs']['registerimage'] == 0): ?>checked="checked"<?php endif; ?> /><label for="registerimage:no">No</label><?php else: ?><?php if ($this->_tpl_vars['configs']['registerimage']): ?>Yes<?php else: ?>No<?php endif; ?><?php endif; ?></div></div><br />

    <div class="fieldItem"><span class="label">Duplicate email<span class="hintanchor" title="Allow more than one user to use an email address."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></span>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="radio" name="dubemail" id="dubemail:yes" value="1" <?php if ($this->_tpl_vars['configs']['dubemail'] == 1): ?>checked="checked"<?php endif; ?> /><label for="dubemail:yes">Yes</label>
    <input name="dubemail" id="dubemail:no" type="radio" value="0" <?php if ($this->_tpl_vars['configs']['dubemail'] == 0): ?>checked="checked"<?php endif; ?> /><label for="dubemail:no">No</label><?php else: ?><?php if ($this->_tpl_vars['configs']['dubemail']): ?>Yes<?php else: ?>No<?php endif; ?><?php endif; ?></div></div><br />

    <div class="fieldItem"><label for="zone" class="label">Default Timezone<span class="hintanchor" title="The default timezone to use for new users."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><select name="defaultZone" id="defaultZone" class="inputbox">
    <?php unset($this->_sections['zones']);
$this->_sections['zones']['name'] = 'zones';
$this->_sections['zones']['loop'] = is_array($_loop=$this->_tpl_vars['numzones']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['zones']['show'] = true;
$this->_sections['zones']['max'] = $this->_sections['zones']['loop'];
$this->_sections['zones']['step'] = 1;
$this->_sections['zones']['start'] = $this->_sections['zones']['step'] > 0 ? 0 : $this->_sections['zones']['loop']-1;
if ($this->_sections['zones']['show']) {
    $this->_sections['zones']['total'] = $this->_sections['zones']['loop'];
    if ($this->_sections['zones']['total'] == 0)
        $this->_sections['zones']['show'] = false;
} else
    $this->_sections['zones']['total'] = 0;
if ($this->_sections['zones']['show']):

            for ($this->_sections['zones']['index'] = $this->_sections['zones']['start'], $this->_sections['zones']['iteration'] = 1;
                 $this->_sections['zones']['iteration'] <= $this->_sections['zones']['total'];
                 $this->_sections['zones']['index'] += $this->_sections['zones']['step'], $this->_sections['zones']['iteration']++):
$this->_sections['zones']['rownum'] = $this->_sections['zones']['iteration'];
$this->_sections['zones']['index_prev'] = $this->_sections['zones']['index'] - $this->_sections['zones']['step'];
$this->_sections['zones']['index_next'] = $this->_sections['zones']['index'] + $this->_sections['zones']['step'];
$this->_sections['zones']['first']      = ($this->_sections['zones']['iteration'] == 1);
$this->_sections['zones']['last']       = ($this->_sections['zones']['iteration'] == $this->_sections['zones']['total']);
?>
    <option value="<?php echo $this->_tpl_vars['zone'][$this->_sections['zones']['index']]['id']; ?>
" <?php if (( $this->_tpl_vars['configs']['defaultZone'] == $this->_tpl_vars['zone'][$this->_sections['zones']['index']]['id'] )): ?>selected="selected" <?php $this->assign('offset', $this->_tpl_vars['zone'][$this->_sections['zones']['index']]['offset']); ?><?php endif; ?>><?php echo $this->_tpl_vars['zone'][$this->_sections['zones']['index']]['name']; ?>
 (<?php echo ((is_array($_tmp=time()+$this->_tpl_vars['zone'][$this->_sections['zones']['index']]['offset']*3600)) ? $this->_run_mod_handler('date_format', true, $_tmp, "%b %d, %Y @ %R") : smarty_modifier_date_format($_tmp, "%b %d, %Y @ %R")); ?>
)</option>
    <?php endfor; endif; ?>
    </select><?php else: ?>
    <?php unset($this->_sections['zones']);
$this->_sections['zones']['name'] = 'zones';
$this->_sections['zones']['loop'] = is_array($_loop=$this->_tpl_vars['numzones']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['zones']['show'] = true;
$this->_sections['zones']['max'] = $this->_sections['zones']['loop'];
$this->_sections['zones']['step'] = 1;
$this->_sections['zones']['start'] = $this->_sections['zones']['step'] > 0 ? 0 : $this->_sections['zones']['loop']-1;
if ($this->_sections['zones']['show']) {
    $this->_sections['zones']['total'] = $this->_sections['zones']['loop'];
    if ($this->_sections['zones']['total'] == 0)
        $this->_sections['zones']['show'] = false;
} else
    $this->_sections['zones']['total'] = 0;
if ($this->_sections['zones']['show']):

            for ($this->_sections['zones']['index'] = $this->_sections['zones']['start'], $this->_sections['zones']['iteration'] = 1;
                 $this->_sections['zones']['iteration'] <= $this->_sections['zones']['total'];
                 $this->_sections['zones']['index'] += $this->_sections['zones']['step'], $this->_sections['zones']['iteration']++):
$this->_sections['zones']['rownum'] = $this->_sections['zones']['iteration'];
$this->_sections['zones']['index_prev'] = $this->_sections['zones']['index'] - $this->_sections['zones']['step'];
$this->_sections['zones']['index_next'] = $this->_sections['zones']['index'] + $this->_sections['zones']['step'];
$this->_sections['zones']['first']      = ($this->_sections['zones']['iteration'] == 1);
$this->_sections['zones']['last']       = ($this->_sections['zones']['iteration'] == $this->_sections['zones']['total']);
?>
    <?php if (( $this->_tpl_vars['configs']['defaultZone'] == $this->_tpl_vars['zone'][$this->_sections['zones']['index']]['id'] )): ?><?php echo $this->_tpl_vars['zone'][$this->_sections['zones']['index']]['name']; ?>
 (<?php echo ((is_array($_tmp=time()+$this->_tpl_vars['zone'][$this->_sections['zones']['index']]['offset']*3600)) ? $this->_run_mod_handler('date_format', true, $_tmp, "%b %d, %Y @ %R") : smarty_modifier_date_format($_tmp, "%b %d, %Y @ %R")); ?>
)<?php endif; ?>
    <?php endfor; endif; ?><?php endif; ?></div></div><br />

    <div class="fieldItem"><label for="accountactivation" class="label">Account Activation<span class="hintanchor" title="User activation will send the user an email with a activation link that he/she must click to activate their account. Admin activation requires the administrator to activate the account from the user control panel."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><select name="accountactivation" id="accountactivation" class="inputbox">
    <option value="0" <?php if (( $this->_tpl_vars['configs']['accountactivation'] == 0 )): ?>selected="selected"<?php endif; ?>>No activation</option>
    <option value="1" <?php if (( $this->_tpl_vars['configs']['accountactivation'] == 1 )): ?>selected="selected"<?php endif; ?>>User Activation</option>
    <option value="2" <?php if (( $this->_tpl_vars['configs']['accountactivation'] == 2 )): ?>selected="selected"<?php endif; ?>>Admin Activation</option>
    </select><?php else: ?><?php if (( $this->_tpl_vars['configs']['accountactivation'] == 0 )): ?>No activiation<?php elseif (( $this->_tpl_vars['configs']['accountactivation'] == 1 )): ?>User Activation<?php elseif (( $this->_tpl_vars['configs']['accountactivation'] == 2 )): ?>Admin Activation<?php endif; ?><?php endif; ?></div></div><br />

    <div class="fieldItem"><label for="defaultgroup" class="label">Default Group<span class="hintanchor" title="The group that new users will be added to automatically."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><select name="defaultgroup" id="defaultgroup" class="inputbox">
    <?php unset($this->_sections['groups']);
$this->_sections['groups']['name'] = 'groups';
$this->_sections['groups']['loop'] = is_array($_loop=$this->_tpl_vars['numgroups']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['groups']['show'] = true;
$this->_sections['groups']['max'] = $this->_sections['groups']['loop'];
$this->_sections['groups']['step'] = 1;
$this->_sections['groups']['start'] = $this->_sections['groups']['step'] > 0 ? 0 : $this->_sections['groups']['loop']-1;
if ($this->_sections['groups']['show']) {
    $this->_sections['groups']['total'] = $this->_sections['groups']['loop'];
    if ($this->_sections['groups']['total'] == 0)
        $this->_sections['groups']['show'] = false;
} else
    $this->_sections['groups']['total'] = 0;
if ($this->_sections['groups']['show']):

            for ($this->_sections['groups']['index'] = $this->_sections['groups']['start'], $this->_sections['groups']['iteration'] = 1;
                 $this->_sections['groups']['iteration'] <= $this->_sections['groups']['total'];
                 $this->_sections['groups']['index'] += $this->_sections['groups']['step'], $this->_sections['groups']['iteration']++):
$this->_sections['groups']['rownum'] = $this->_sections['groups']['iteration'];
$this->_sections['groups']['index_prev'] = $this->_sections['groups']['index'] - $this->_sections['groups']['step'];
$this->_sections['groups']['index_next'] = $this->_sections['groups']['index'] + $this->_sections['groups']['step'];
$this->_sections['groups']['first']      = ($this->_sections['groups']['iteration'] == 1);
$this->_sections['groups']['last']       = ($this->_sections['groups']['iteration'] == $this->_sections['groups']['total']);
?>
    <option value="<?php echo $this->_tpl_vars['group'][$this->_sections['groups']['index']]['id']; ?>
" <?php if (( $this->_tpl_vars['configs']['defaultgroup'] == $this->_tpl_vars['group'][$this->_sections['groups']['index']]['id'] )): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['group'][$this->_sections['groups']['index']]['teamname']; ?>
</option>
    <?php endfor; endif; ?>
    </select><?php else: ?>
    <?php unset($this->_sections['groups']);
$this->_sections['groups']['name'] = 'groups';
$this->_sections['groups']['loop'] = is_array($_loop=$this->_tpl_vars['numgroups']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['groups']['show'] = true;
$this->_sections['groups']['max'] = $this->_sections['groups']['loop'];
$this->_sections['groups']['step'] = 1;
$this->_sections['groups']['start'] = $this->_sections['groups']['step'] > 0 ? 0 : $this->_sections['groups']['loop']-1;
if ($this->_sections['groups']['show']) {
    $this->_sections['groups']['total'] = $this->_sections['groups']['loop'];
    if ($this->_sections['groups']['total'] == 0)
        $this->_sections['groups']['show'] = false;
} else
    $this->_sections['groups']['total'] = 0;
if ($this->_sections['groups']['show']):

            for ($this->_sections['groups']['index'] = $this->_sections['groups']['start'], $this->_sections['groups']['iteration'] = 1;
                 $this->_sections['groups']['iteration'] <= $this->_sections['groups']['total'];
                 $this->_sections['groups']['index'] += $this->_sections['groups']['step'], $this->_sections['groups']['iteration']++):
$this->_sections['groups']['rownum'] = $this->_sections['groups']['iteration'];
$this->_sections['groups']['index_prev'] = $this->_sections['groups']['index'] - $this->_sections['groups']['step'];
$this->_sections['groups']['index_next'] = $this->_sections['groups']['index'] + $this->_sections['groups']['step'];
$this->_sections['groups']['first']      = ($this->_sections['groups']['iteration'] == 1);
$this->_sections['groups']['last']       = ($this->_sections['groups']['iteration'] == $this->_sections['groups']['total']);
?>
    <?php if (( $this->_tpl_vars['configs']['defaultgroup'] == $this->_tpl_vars['group'][$this->_sections['groups']['index']]['id'] )): ?><?php echo $this->_tpl_vars['group'][$this->_sections['groups']['index']]['teamname']; ?>
<?php endif; ?>
    <?php endfor; endif; ?><?php endif; ?></div></div><br />

    <div class="fieldItem"><label for="welcomemessage" class="label">Welcome Message<span class="hintanchor" title="A short welcome message to show to all new users when the register. You may use HTML here."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><textarea name="welcomemessage" style="width:100%" rows="30" id="welcomemessage"class="inputbox" onblur="checkElement('welcomemessage', 'text', true, 0, 0, '');"><?php echo $this->_tpl_vars['configs']['welcomemessage']; ?>
</textarea><br /><span class="fieldError" id="welcomemessageError">Required</span><?php else: ?><?php echo $this->_tpl_vars['configs']['welcomemessage']; ?>
<?php endif; ?></div></div><br />

    <div class="fieldItem"><label for="privacy" class="label">Privacy Statement<span class="hintanchor" title="A short privacy statement to show to all new users when the register. This is a legal requirement in some countries. You may use HTML here."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><textarea name="privacy" style="width:100%" rows="30" id="privacy" class="inputbox" onblur="checkElement('privacy', 'text', true, 0, 0, '');"><?php echo $this->_tpl_vars['configs']['privacy']; ?>
</textarea><br /><span class="fieldError" id="privacyError">Required</span><?php else: ?><?php echo $this->_tpl_vars['configs']['privacy']; ?>
<?php endif; ?></div></div><br />

    </div>
    
    <?php if ($this->_tpl_vars['editallowed']): ?><div class="submitWrapper">
        <input type="submit" name="Submit" value="Update Config"  class="button" />&nbsp;
        <input type="reset" name="Submit2" value="Reset" class="button" />
    </div><?php endif; ?>
</div>

<h4 title="profile">Profile</h4>
<div id="profile">
<div class="field">
    <div class="fieldItem"><label for="avyx" class="label">Avatar Size<span class="hintanchor" title="Width x Height. Maximum size of a users avatar in pixels. Enter zero for either value to disable avatars. Default value is 100x100."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="text" style="width:60px" id="avyx" name="avyx" value="<?php echo $this->_tpl_vars['configs']['avyx']; ?>
" class="inputbox" onblur="checkElement('avyx', 'number', true, 0, 0, '');" /> x <input type="text" name="avyy" id="avyy" style="width:60px" value="<?php echo $this->_tpl_vars['configs']['avyy']; ?>
" class="inputbox" onblur="checkElement('avyy', 'number', true, 0, 0, '');" /><br /><span class="fieldError" id="avyxError">Required: Width must be a number.<br /></span><span class="fieldError" id="avyyError">Required: Height must be a number.</span><?php else: ?><?php echo $this->_tpl_vars['configs']['avyx']; ?>
x<?php echo $this->_tpl_vars['configs']['avyy']; ?>
<?php endif; ?></div></div><br />

    <div class="fieldItem"><label for="sigsize" class="label">Signature length<span class="hintanchor" title="Maximum number of characters that a users signature can be. Enter zero to disable signatures. Default value is 255."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="text" name="sigsize" id="sigsize" value="<?php echo $this->_tpl_vars['configs']['sigsize']; ?>
" class="inputbox" onblur="checkElement('sigsize', 'number', true, 0, 0, '');" /><br /><span class="fieldError" id="sigsizeError">Required: Must be a number.</span><?php else: ?><?php echo $this->_tpl_vars['configs']['sigsize']; ?>
<?php endif; ?></div></div><br />
</div>

    <?php if ($this->_tpl_vars['editallowed']): ?><div class="submitWrapper">
        <input type="submit" name="Submit" value="Update Config"  class="button" />&nbsp;
        <input type="reset" name="Submit2" value="Reset" class="button" />
    </div><?php endif; ?>
</div>

<h4 title="layout">Layout</h4>
<div id="layout">
<div class="field">
    <div class="fieldItem"><label for="photox" class="label">Maximum size of photos<span class="hintanchor" title="Maximum size for a photo. CMScout makes sure that scaled down photos keep their aspect ratio. Default value is 800x600. To disable resizing set either value to zero."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="text" style="width:60px" name="photox" id="photox" value="<?php echo $this->_tpl_vars['configs']['photox']; ?>
" class="inputbox" onblur="checkElement('photox', 'number', true, 0, 0, '');" /> x <input type="text" name="photoy" id="photoy" style="width:60px" value="<?php echo $this->_tpl_vars['configs']['photoy']; ?>
" class="inputbox" onblur="checkElement('photoys', 'number', true, 0, 0, '');" /><br /><span class="fieldError" id="photoxError">Required: Width must be a number.<br /></span><span class="fieldError" id="photoyError">Required: Height must be a number.</span><?php else: ?><?php echo $this->_tpl_vars['configs']['photox']; ?>
x<?php echo $this->_tpl_vars['configs']['photoy']; ?>
<?php endif; ?></div></div><br />
    
    <div class="fieldItem"><label for="theme" class="label">Default Template<span class="hintanchor" title="The default template that CMScout uses."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><select name="defaulttheme" id="theme" class="inputbox">
    <?php unset($this->_sections['themes']);
$this->_sections['themes']['name'] = 'themes';
$this->_sections['themes']['loop'] = is_array($_loop=$this->_tpl_vars['numthemes']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['themes']['show'] = true;
$this->_sections['themes']['max'] = $this->_sections['themes']['loop'];
$this->_sections['themes']['step'] = 1;
$this->_sections['themes']['start'] = $this->_sections['themes']['step'] > 0 ? 0 : $this->_sections['themes']['loop']-1;
if ($this->_sections['themes']['show']) {
    $this->_sections['themes']['total'] = $this->_sections['themes']['loop'];
    if ($this->_sections['themes']['total'] == 0)
        $this->_sections['themes']['show'] = false;
} else
    $this->_sections['themes']['total'] = 0;
if ($this->_sections['themes']['show']):

            for ($this->_sections['themes']['index'] = $this->_sections['themes']['start'], $this->_sections['themes']['iteration'] = 1;
                 $this->_sections['themes']['iteration'] <= $this->_sections['themes']['total'];
                 $this->_sections['themes']['index'] += $this->_sections['themes']['step'], $this->_sections['themes']['iteration']++):
$this->_sections['themes']['rownum'] = $this->_sections['themes']['iteration'];
$this->_sections['themes']['index_prev'] = $this->_sections['themes']['index'] - $this->_sections['themes']['step'];
$this->_sections['themes']['index_next'] = $this->_sections['themes']['index'] + $this->_sections['themes']['step'];
$this->_sections['themes']['first']      = ($this->_sections['themes']['iteration'] == 1);
$this->_sections['themes']['last']       = ($this->_sections['themes']['iteration'] == $this->_sections['themes']['total']);
?>
    <option value="<?php echo $this->_tpl_vars['theme'][$this->_sections['themes']['index']]['id']; ?>
" <?php if (( $this->_tpl_vars['configs']['defaulttheme'] == $this->_tpl_vars['theme'][$this->_sections['themes']['index']]['id'] )): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['theme'][$this->_sections['themes']['index']]['name']; ?>
</option>
    <?php endfor; endif; ?>
    </select><?php else: ?><?php unset($this->_sections['themes']);
$this->_sections['themes']['name'] = 'themes';
$this->_sections['themes']['loop'] = is_array($_loop=$this->_tpl_vars['numthemes']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['themes']['show'] = true;
$this->_sections['themes']['max'] = $this->_sections['themes']['loop'];
$this->_sections['themes']['step'] = 1;
$this->_sections['themes']['start'] = $this->_sections['themes']['step'] > 0 ? 0 : $this->_sections['themes']['loop']-1;
if ($this->_sections['themes']['show']) {
    $this->_sections['themes']['total'] = $this->_sections['themes']['loop'];
    if ($this->_sections['themes']['total'] == 0)
        $this->_sections['themes']['show'] = false;
} else
    $this->_sections['themes']['total'] = 0;
if ($this->_sections['themes']['show']):

            for ($this->_sections['themes']['index'] = $this->_sections['themes']['start'], $this->_sections['themes']['iteration'] = 1;
                 $this->_sections['themes']['iteration'] <= $this->_sections['themes']['total'];
                 $this->_sections['themes']['index'] += $this->_sections['themes']['step'], $this->_sections['themes']['iteration']++):
$this->_sections['themes']['rownum'] = $this->_sections['themes']['iteration'];
$this->_sections['themes']['index_prev'] = $this->_sections['themes']['index'] - $this->_sections['themes']['step'];
$this->_sections['themes']['index_next'] = $this->_sections['themes']['index'] + $this->_sections['themes']['step'];
$this->_sections['themes']['first']      = ($this->_sections['themes']['iteration'] == 1);
$this->_sections['themes']['last']       = ($this->_sections['themes']['iteration'] == $this->_sections['themes']['total']);
?><?php if (( $this->_tpl_vars['configs']['defaulttheme'] == $this->_tpl_vars['theme'][$this->_sections['themes']['index']]['id'] )): ?><?php echo $this->_tpl_vars['theme'][$this->_sections['themes']['index']]['name']; ?>
<?php endif; ?><?php endfor; endif; ?><?php endif; ?></div></div><br />

    <div class="fieldItem"><span class="label">User custom templates<span class="hintanchor" title="Allow users to choose between installed templates (If you only have one template then users will not be given the option to change their template)"><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></span>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="radio" name="allowtemplate" id="allowtemplate:yes" value="1" <?php if ($this->_tpl_vars['configs']['allowtemplate'] == 1): ?>checked="checked"<?php endif; ?> /><label for="allowtemplate:yes">Yes</label>
    <input name="allowtemplate" id="allowtemplate:no" type="radio" value="0" <?php if ($this->_tpl_vars['configs']['allowtemplate'] == 0): ?>checked="checked"<?php endif; ?> /><label for="allowtemplate:no">No</label><?php else: ?><?php if ($this->_tpl_vars['configs']['allowtemplate']): ?>Yes<?php else: ?>No<?php endif; ?><?php endif; ?></div></div><br />

    <div class="fieldItem"><span class="label">Group sites enabled<span class="hintanchor" title="Allows you to deactivate all group sites."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></span>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="radio" name="patrolpage" id="patrolpage:yes" value="1" <?php if ($this->_tpl_vars['configs']['patrolpage'] == 1): ?>checked="checked"<?php endif; ?> /><label for="patrolpage:yes">Yes</label>
    <input name="patrolpage" id="patrolpage:no" type="radio" value="0" <?php if ($this->_tpl_vars['configs']['patrolpage'] == 0): ?>checked="checked"<?php endif; ?> /><label for="patrolpage:no">No</label><?php else: ?><?php if ($this->_tpl_vars['configs']['patrolpage']): ?>Yes<?php else: ?>No<?php endif; ?><?php endif; ?></div></div><br />

    <div class="fieldItem"><span class="label">News page sorting<span class="hintanchor" title="How should news items on the news archive page be sorted"><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></span>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="radio" name="newssort" id="newssort:yes" value="1" <?php if ($this->_tpl_vars['configs']['newssort'] == 1): ?>checked="checked"<?php endif; ?> /><label for="newssort:yes">Oldest First</label>
    <input name="newssort" id="newssort:no" type="radio" value="0" <?php if ($this->_tpl_vars['configs']['newssort'] == 0): ?>checked="checked"<?php endif; ?> /><label for="newssort:no">Newest First</label><?php else: ?><?php if ($this->_tpl_vars['configs']['newssort']): ?>Oldest First<?php else: ?>Newest First<?php endif; ?><?php endif; ?></div></div><br />

    <div class="fieldItem"><span class="label">Display all articles<span class="hintanchor" title="Display all articles on the general article page, or only display articles not attached to a group."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></span>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="radio" name="articledisplay" id="articledisplay:yes" value="1" <?php if ($this->_tpl_vars['configs']['articledisplay'] == 1): ?>checked="checked"<?php endif; ?> /><label for="articledisplay:yes">Yes</label>
    <input name="articledisplay" id="articledisplay:no" type="radio" value="0" <?php if ($this->_tpl_vars['configs']['articledisplay'] == 0): ?>checked="checked"<?php endif; ?> /><label for="articledisplay:no">No</label><?php else: ?><?php if ($this->_tpl_vars['configs']['articledisplay']): ?>Yes<?php else: ?>No<?php endif; ?><?php endif; ?></div></div><br />

    <div class="fieldItem"><span class="label">Display all photo albums<span class="hintanchor" title="Display all photo albums on the general photo album page, or only display photo albums not attached to a group."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></span>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="radio" name="albumdisplay" id="albumdisplay:yes" value="1" <?php if ($this->_tpl_vars['configs']['albumdisplay'] == 1): ?>checked="checked"<?php endif; ?> /><label for="albumdisplay:yes">Yes</label>
    <input name="albumdisplay" id="albumdisplay:no" type="radio" value="0" <?php if ($this->_tpl_vars['configs']['albumdisplay'] == 0): ?>checked="checked"<?php endif; ?> /><label for="albumdisplay:no">No</label><?php else: ?><?php if ($this->_tpl_vars['configs']['albumdisplay']): ?>Yes<?php else: ?>No<?php endif; ?><?php endif; ?></div></div><br />

    <div class="fieldItem"><span class="label">Pagenate photo albums<span class="hintanchor" title="Should photo albums be split into pages. The number of photos on a page is set with the Items per page option below."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></span>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="radio" name="pagephoto" id="pagephoto:yes" value="1" <?php if ($this->_tpl_vars['configs']['pagephoto'] == 1): ?>checked="checked"<?php endif; ?> /><label for="pagephoto:yes">Yes</label>
    <input name="pagephoto" id="pagephoto:no" type="radio" value="0" <?php if ($this->_tpl_vars['configs']['pagephoto'] == 0): ?>checked="checked"<?php endif; ?> /><label for="pagephoto:no">No</label><?php else: ?><?php if ($this->_tpl_vars['configs']['pagephoto']): ?>Yes<?php else: ?>No<?php endif; ?><?php endif; ?></div></div><br />

    <div class="fieldItem"><label for="numsidebox" class="label">Items on sideboxes<span class="hintanchor" title="Number of items to show in sideboxes. Default value is 5"><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="text" name="numsidebox" id="numsidebox" value="<?php echo $this->_tpl_vars['configs']['numsidebox']; ?>
" class="inputbox" onblur="checkElement('numsidebox', 'number', true, 0, 0, '');" /><br /><span class="fieldError" id="numsideboxError">Required: Must be a number.</span><?php else: ?><?php echo $this->_tpl_vars['configs']['numsidebox']; ?>
<?php endif; ?></div></div><br />
    
    <div class="fieldItem"><label for="numpage" class="label">Items per page<span class="hintanchor" title="Number of itmes to show on a single page in the forum and photo album. Default value is 10."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="text" name="numpage" id="numpage" value="<?php echo $this->_tpl_vars['configs']['numpage']; ?>
" class="inputbox" onblur="checkElement('numpage', 'number', true, 0, 0, '');" /><br /><span class="fieldError" id="numpageError">Required: Must be a number.</span><?php else: ?><?php echo $this->_tpl_vars['configs']['numpage']; ?>
<?php endif; ?></div></div><br />

    <div class="fieldItem"><label for="defaultview" class="label">Default Calendar View<span class="hintanchor" title="The default view for your calendar."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><select name="defaultview" id="defaultview" class="inputbox">
    <option value="Year" <?php if (( $this->_tpl_vars['configs']['defaultview'] == 'Year' )): ?>selected="selected"<?php endif; ?>>Year</option>
    <option value="Month" <?php if (( $this->_tpl_vars['configs']['defaultview'] == 'Month' )): ?>selected="selected"<?php endif; ?>>Month</option>
    <option value="List" <?php if (( $this->_tpl_vars['configs']['defaultview'] == 'List' )): ?>selected="selected"<?php endif; ?>>List</option>
    </select><?php else: ?><?php echo $this->_tpl_vars['configs']['defaultview']; ?>
<?php endif; ?></div></div><br />

    <div class="fieldItem"><label for="startday" class="label">Week starting day<span class="hintanchor" title="The day that the calendar should start its week."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></label>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><select name="startday" id="startday" class="inputbox">
    <option value="1" <?php if (( $this->_tpl_vars['configs']['startday'] == '1' )): ?>selected="selected"<?php endif; ?>>Monday</option>
    <option value="2" <?php if (( $this->_tpl_vars['configs']['startday'] == '2' )): ?>selected="selected"<?php endif; ?>>Tuesday</option>
    <option value="3" <?php if (( $this->_tpl_vars['configs']['startday'] == '3' )): ?>selected="selected"<?php endif; ?>>Wednesday</option>
    <option value="4" <?php if (( $this->_tpl_vars['configs']['startday'] == '4' )): ?>selected="selected"<?php endif; ?>>Thursday</option>
    <option value="5" <?php if (( $this->_tpl_vars['configs']['startday'] == '5' )): ?>selected="selected"<?php endif; ?>>Friday</option>
    <option value="6" <?php if (( $this->_tpl_vars['configs']['startday'] == '6' )): ?>selected="selected"<?php endif; ?>>Saturday</option>
    <option value="7" <?php if (( $this->_tpl_vars['configs']['startday'] == '7' )): ?>selected="selected"<?php endif; ?>>Sunday</option>
    </select><?php else: ?><?php echo $this->_tpl_vars['configs']['defaultview']; ?>
<?php endif; ?></div></div><br />
    
    
    </div>
    <?php if ($this->_tpl_vars['editallowed']): ?><div class="submitWrapper">
        <input type="submit" name="Submit" value="Update Config"  class="button" />&nbsp;
        <input type="reset" name="Submit2" value="Reset" class="button" />
    </div><?php endif; ?>
</div>

<h4 title="confirm">Confirmation</h4>
<div id="confirm">
<div class="field">
    <div class="fieldItem"><span class="label">Notify Webmaster<span class="hintanchor" title="Should CMScout send an email to the webmaster address if a item needs to be reviewed?"><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></span>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="radio" name="notify" id="notify:yes" value="1" <?php if ($this->_tpl_vars['configs']['notify'] == 1): ?>checked="checked"<?php endif; ?> /><label for="notify:yes">Yes</label>
    <input name="notify" id="notify:no" type="radio" value="0" <?php if ($this->_tpl_vars['configs']['notify'] == 0): ?>checked="checked"<?php endif; ?> /><label for="notify:no">No</label><?php else: ?><?php if ($this->_tpl_vars['configs']['notify']): ?>Yes<?php else: ?>No<?php endif; ?><?php endif; ?></div></div><br />
    
    <div class="fieldItem"><span class="label">Confirm Articles<span class="hintanchor" title="If set to yes, an administrator will be required to publish any article that is posted."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></span>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="radio" name="confirmarticle" id="confirmarticle:yesall" value="2" <?php if ($this->_tpl_vars['configs']['confirmarticle'] == 2): ?>checked="checked"<?php endif; ?> /><label for="confirmarticle:yesall">Yes for all.</label><input type="radio" name="confirmarticle" id="confirmarticle:yes" value="1" <?php if ($this->_tpl_vars['configs']['confirmarticle'] == 1): ?>checked="checked"<?php endif; ?> /><label for="confirmarticle:yes">Yes, except groups in exclusion list</label>
    <input name="confirmarticle" id="confirmarticle:no" type="radio" value="0" <?php if ($this->_tpl_vars['configs']['confirmarticle'] == 0): ?>checked="checked"<?php endif; ?> /><label for="confirmarticle:no">No</label><?php else: ?><?php if ($this->_tpl_vars['configs']['confirmarticle'] == 2): ?>Yes for All<?php elseif ($this->_tpl_vars['configs']['confirmarticle'] == 1): ?>Yes, except groups in exclusion list<?php else: ?>No<?php endif; ?><?php endif; ?></div></div><br />

    <div class="fieldItem"><span class="label">Confirm Photo Albums<span class="hintanchor" title="If set to yes, an administrator will be required to publish any photo album that is posted."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></span>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="radio" name="confirmalbum" id="confirmalbum:yesall" value="2" <?php if ($this->_tpl_vars['configs']['confirmalbum'] == 2): ?>checked="checked"<?php endif; ?> /><label for="confirmalbum:yesall">Yes for all.</label><input type="radio" name="confirmalbum" id="confirmalbum:yes" value="1" <?php if ($this->_tpl_vars['configs']['confirmalbum'] == 1): ?>checked="checked"<?php endif; ?> /><label for="confirmalbum:yes">Yes, except groups in exclusion list</label>
    <input name="confirmalbum" id="confirmalbum:no" type="radio" value="0" <?php if ($this->_tpl_vars['configs']['confirmalbum'] == 0): ?>checked="checked"<?php endif; ?> /><label for="confirmalbum:no">No</label><?php else: ?><?php if ($this->_tpl_vars['configs']['confirmalbum'] == 2): ?>Yes for All<?php elseif ($this->_tpl_vars['configs']['confirmalbum'] == 1): ?>Yes, except groups in exclusion list<?php else: ?>No<?php endif; ?><?php endif; ?></div></div><br />

    <div class="fieldItem"><span class="label">Confirm Photos<span class="hintanchor" title="If set to yes, an administrator will be required to publish any photo that is posted to a published album."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></span>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="radio" name="confirmphoto" id="confirmphoto:yesall" value="2" <?php if ($this->_tpl_vars['configs']['confirmphoto'] == 2): ?>checked="checked"<?php endif; ?> /><label for="confirmphoto:yesall">Yes for all.</label><input type="radio" name="confirmphoto" id="confirmphoto:yes" value="1" <?php if ($this->_tpl_vars['configs']['confirmphoto'] == 1): ?>checked="checked"<?php endif; ?> /><label for="confirmphoto:yes">Yes, except groups in exclusion list</label>
    <input name="confirmphoto" id="confirmphoto:no" type="radio" value="0" <?php if ($this->_tpl_vars['configs']['confirmphoto'] == 0): ?>checked="checked"<?php endif; ?> /><label for="confirmphoto:no">No</label><?php else: ?><?php if ($this->_tpl_vars['configs']['confirmphoto'] == 2): ?>Yes for All<?php elseif ($this->_tpl_vars['configs']['confirmphoto'] == 1): ?>Yes, except groups in exclusion list<?php else: ?>No<?php endif; ?><?php endif; ?></div></div><br />

    <div class="fieldItem"><span class="label">Confirm Events<span class="hintanchor" title="If set to yes, an administrator will be required to publish any event that is posted."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></span>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="radio" name="confirmevent" id="confirmevent:yesall" value="2" <?php if ($this->_tpl_vars['configs']['confirmevent'] == 2): ?>checked="checked"<?php endif; ?> /><label for="confirmevent:yesall">Yes for all.</label><input type="radio" name="confirmevent" id="confirmevent:yes" value="1" <?php if ($this->_tpl_vars['configs']['confirmevent'] == 1): ?>checked="checked"<?php endif; ?> /><label for="confirmevent:yes">Yes, except groups in exclusion list</label>
    <input name="confirmevent" id="confirmevent:no" type="radio" value="0" <?php if ($this->_tpl_vars['configs']['confirmevent'] == 0): ?>checked="checked"<?php endif; ?> /><label for="confirmevent:no">No</label><?php else: ?><?php if ($this->_tpl_vars['configs']['confirmevent'] == 2): ?>Yes for All<?php elseif ($this->_tpl_vars['configs']['confirmevent'] == 1): ?>Yes, except groups in exclusion list<?php else: ?>No<?php endif; ?><?php endif; ?></div></div><br />

    <div class="fieldItem"><span class="label">Confirm Downloads<span class="hintanchor" title="If set to yes, an administrator will be required to publish any download that is posted."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></span>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="radio" name="confirmdownload" id="confirmdownload:yesall" value="2" <?php if ($this->_tpl_vars['configs']['confirmdownload'] == 2): ?>checked="checked"<?php endif; ?> /><label for="confirmdownload:yesall">Yes for all.</label><input type="radio" name="confirmdownload" id="confirmdownload:yes" value="1" <?php if ($this->_tpl_vars['configs']['confirmdownload'] == 1): ?>checked="checked"<?php endif; ?> /><label for="confirmdownload:yes">Yes, except groups in exclusion list</label>
    <input name="confirmdownload" id="confirmdownload:no" type="radio" value="0" <?php if ($this->_tpl_vars['configs']['confirmdownload'] == 0): ?>checked="checked"<?php endif; ?> /><label for="confirmdownload:no">No</label><?php else: ?><?php if ($this->_tpl_vars['configs']['confirmdownload'] == 2): ?>Yes for All<?php elseif ($this->_tpl_vars['configs']['confirmdownload'] == 1): ?>Yes, except groups in exclusion list<?php else: ?>No<?php endif; ?><?php endif; ?></div></div><br />

    <div class="fieldItem"><span class="label">Confirm News<span class="hintanchor" title="If set to yes, an administrator will be required to publish any news that is posted."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></span>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="radio" name="confirmnews" id="confirmnews:yesall" value="2" <?php if ($this->_tpl_vars['configs']['confirmnews'] == 2): ?>checked="checked"<?php endif; ?> /><label for="confirmnews:yesall">Yes for all.</label><input type="radio" name="confirmnews" id="confirmnews:yes" value="1" <?php if ($this->_tpl_vars['configs']['confirmnews'] == 1): ?>checked="checked"<?php endif; ?> /><label for="confirmnews:yes">Yes, except groups in exclusion list</label>
    <input name="confirmnews" id="confirmnews:no" type="radio" value="0" <?php if ($this->_tpl_vars['configs']['confirmnews'] == 0): ?>checked="checked"<?php endif; ?> /><label for="confirmnews:no">No</label><?php else: ?><?php if ($this->_tpl_vars['configs']['confirmnews'] == 2): ?>Yes for All<?php elseif ($this->_tpl_vars['configs']['confirmnews'] == 1): ?>Yes, except groups in exclusion list<?php else: ?>No<?php endif; ?><?php endif; ?></div></div><br />

    <div class="fieldItem"><span class="label">Confirm Comments<span class="hintanchor" title="If set to yes, an administrator will be required to publish any comments that is posted."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></span>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="radio" name="confirmcomment" id="confirmcomment:yesall" value="2" <?php if ($this->_tpl_vars['configs']['confirmcomment'] == 2): ?>checked="checked"<?php endif; ?> /><label for="confirmcomment:yesall">Yes for all.</label><input type="radio" name="confirmcomment" id="confirmcomment:yes" value="1" <?php if ($this->_tpl_vars['configs']['confirmcomment'] == 1): ?>checked="checked"<?php endif; ?> /><label for="confirmcomment:yes">Yes, except groups in exclusion list</label>
    <input name="confirmcomment" id="confirmcomment:no" type="radio" value="0" <?php if ($this->_tpl_vars['configs']['confirmcomment'] == 0): ?>checked="checked"<?php endif; ?> /><label for="confirmcomment:no">No</label><?php else: ?><?php if ($this->_tpl_vars['configs']['confirmcomment'] == 2): ?>Yes for All<?php elseif ($this->_tpl_vars['configs']['confirmcomment'] == 1): ?>Yes, except groups in exclusion list<?php else: ?>No<?php endif; ?><?php endif; ?></div></div><br />

    <div class="fieldItem"><span class="label">Confirm Polls<span class="hintanchor" title="If set to yes, an administrator will be required to publish any poll that is posted."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></span>
    <div class="inputboxwrapper"><?php if ($this->_tpl_vars['editallowed']): ?><input type="radio" name="confirmpoll" id="confirmpoll:yesall" value="2" <?php if ($this->_tpl_vars['configs']['confirmpoll'] == 2): ?>checked="checked"<?php endif; ?> /><label for="confirmpoll:yesall">Yes for all.</label><input type="radio" name="confirmpoll" id="confirmpoll:yes" value="1" <?php if ($this->_tpl_vars['configs']['confirmpoll'] == 1): ?>checked="checked"<?php endif; ?> /><label for="confirmpoll:yes">Yes, except groups in exclusion list</label>
    <input name="confirmpoll" id="confirmpoll:no" type="radio" value="0" <?php if ($this->_tpl_vars['configs']['confirmpoll'] == 0): ?>checked="checked"<?php endif; ?> /><label for="confirmpoll:no">No</label><?php else: ?><?php if ($this->_tpl_vars['configs']['confirmpoll'] == 2): ?>Yes for All<?php elseif ($this->_tpl_vars['configs']['confirmpoll'] == 1): ?>Yes, except groups in exclusion list<?php else: ?>No<?php endif; ?><?php endif; ?></div></div><br />
    
    <div class="fieldItem"><span class="label"><b>Exclusion List:</b><span class="hintanchor" title="Groups that are excluded from required administrator intervention for new items."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></span>
<div class="inputboxwrapper"><ul class="checklist" style="height:10em;">
    <?php unset($this->_sections['group']);
$this->_sections['group']['name'] = 'group';
$this->_sections['group']['loop'] = is_array($_loop=$this->_tpl_vars['numgroups']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['group']['show'] = true;
$this->_sections['group']['max'] = $this->_sections['group']['loop'];
$this->_sections['group']['step'] = 1;
$this->_sections['group']['start'] = $this->_sections['group']['step'] > 0 ? 0 : $this->_sections['group']['loop']-1;
if ($this->_sections['group']['show']) {
    $this->_sections['group']['total'] = $this->_sections['group']['loop'];
    if ($this->_sections['group']['total'] == 0)
        $this->_sections['group']['show'] = false;
} else
    $this->_sections['group']['total'] = 0;
if ($this->_sections['group']['show']):

            for ($this->_sections['group']['index'] = $this->_sections['group']['start'], $this->_sections['group']['iteration'] = 1;
                 $this->_sections['group']['iteration'] <= $this->_sections['group']['total'];
                 $this->_sections['group']['index'] += $this->_sections['group']['step'], $this->_sections['group']['iteration']++):
$this->_sections['group']['rownum'] = $this->_sections['group']['iteration'];
$this->_sections['group']['index_prev'] = $this->_sections['group']['index'] - $this->_sections['group']['step'];
$this->_sections['group']['index_next'] = $this->_sections['group']['index'] + $this->_sections['group']['step'];
$this->_sections['group']['first']      = ($this->_sections['group']['iteration'] == 1);
$this->_sections['group']['last']       = ($this->_sections['group']['iteration'] == $this->_sections['group']['total']);
?>
        <?php $this->assign('id', $this->_tpl_vars['group'][$this->_sections['group']['index']]['id']); ?>
        <li title="confirm"><label for="exclusion<?php echo $this->_tpl_vars['group'][$this->_sections['group']['index']]['id']; ?>
"><?php if ($this->_tpl_vars['editallowed']): ?><input type="checkbox" value="1" name="exclusion[<?php echo $this->_tpl_vars['group'][$this->_sections['group']['index']]['id']; ?>
]" id="exclusion<?php echo $this->_tpl_vars['group'][$this->_sections['group']['index']]['id']; ?>
" <?php if ($this->_tpl_vars['config']['exclusion'][$this->_tpl_vars['id']] == 1): ?>checked="checked"<?php endif; ?> /><?php else: ?><?php if ($this->_tpl_vars['config']['exclusion'][$this->_tpl_vars['id']] == 1): ?><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/unpublish.png" border="0" alt="-" title="-" /><?php else: ?><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/publish.png" border="0" alt="x" title="x" /><?php endif; ?>&nbsp;<?php endif; ?><?php echo $this->_tpl_vars['group'][$this->_sections['group']['index']]['teamname']; ?>
</label></li>
    <?php endfor; else: ?>
        <li title="confirm">No available groups</li>
    <?php endif; ?> 
</ul></div></div><br />
</div>
    <?php if ($this->_tpl_vars['editallowed']): ?><div class="submitWrapper">
        <input type="submit" name="Submit" value="Update Config"  class="button" />&nbsp;
        <input type="reset" name="Submit2" value="Reset" class="button" />
    </div><?php endif; ?>
</div>

</div></form>